package cc.miwuya.community.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cc.miwuya.community.domain.PropertyItem;
import cc.miwuya.community.service.PropertyItemService;
import cc.miwuya.community.mapper.PropertyItemMapper;
import org.springframework.stereotype.Service;

/**
* @author 杩烽浘妫灄
* @description 针对表【property_item(物业权限表)】的数据库操作Service实现
* @createDate 2024-03-10 16:45:53
*/
@Service
public class PropertyItemServiceImpl extends ServiceImpl<PropertyItemMapper, PropertyItem>
    implements PropertyItemService{

    @Override
    public PropertyItem getByUserId(Long userId) {
        return getOne(new QueryWrapper<PropertyItem>().eq("user_id", userId));
    }
}




